﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SCSService;
//using MailBroadcastDataAcess;
using MailBroadcastCore;

namespace MailBroadcastCore.Models
{
    public class CampaignModels
    {
        //public static List<MailBroadcastDataAcess.Entity.Client> GetListClientToDrop()
        //{ 
        //    MailBroadcastBussiness.CampaignService camSvc=new CampaignService();
        //    return camSvc.GetListClientDrop();
        //}

        //public static List<MailBroadcastDataAcess.Entity.Staff> GetListStaffByClientID(int? id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListStaffByClientID(id);
        //}

        //public static List<MailBroadcastDataAcess.Entity.Staff> GetListStaffAplink()
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListStaffAplink();
        //}

        //public static List<MailBroadcastDataAcess.Entity.MailSetting> GetListMailSettingToDrop()
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListMailSettingNotPaging();
        //}

        //public static MailBroadcastDataAcess.Entity.MailSetting GetMailSettingByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetMailSettingByID(id);
        //}

        //public static MailBroadcastDataAcess.Entity.TemplateHtml GetTemplateByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetTemplateHtmlByID(id);
        //}

        //public static List<MailBroadcastDataAcess.Entity.TemplateHtml> GetListTemplateNotPaging()
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListTemplateHtmlNotPaging();
        //}

        //public static List<MailBroadcastDataAcess.Entity.TemplateHtml> GetListTemplatePaging(out int TotalNumber, int currenPage, int pageSize, string name, string content, byte? status, int? userCreate, bool? deploy, DateTime? dateCreate)
        //{
        //    //TotalNumber = 0;
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListTemplateHtmlPaging(out TotalNumber,currenPage, pageSize, name, content, status, userCreate, deploy, dateCreate);
        //}

        //public static int CreateCampaignDetail(MailBroadcastDataAcess.Entity.Campaign cam)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateCampaign(cam);
        //}

        //public static int CreateMailSettingDetail(MailBroadcastDataAcess.Entity.MailSetting mailSetting)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateMailSetting(mailSetting);
        //}

        //public static int UpdateMailSettingDetail(MailBroadcastDataAcess.Entity.MailSetting mailSetting)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.UpdateMailSetting(mailSetting);
        //}

        //public static MailBroadcastDataAcess.Entity.Campaign GetCampaignByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetCampaignByID(id);
        //}

        //public static int UpdateCampaign(MailBroadcastDataAcess.Entity.Campaign cam)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.UpdateCampaign(cam);
        //}

        //public static int CreateClientStaffCampaign(MailBroadcastDataAcess.Entity.ClientStaffCampaign csc)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateClientStaffCampaign(csc);
        //}

        //public static int CreateAssignUser(MailBroadcastDataAcess.Entity.AssignUser assignUser)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateAssignUser(assignUser);
        //}

        //public static int CreateAttachFile(MailBroadcastDataAcess.Entity.AttachFile att)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateAttachFile(att);
        //}

        //public static int CreateCustomerCampaign(MailBroadcastDataAcess.Entity.CustomerCampaign cusCampaign)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateCustomerCampaign(cusCampaign);
        //}

        //public static List<MailBroadcastDataAcess.Entity.Country> GetListContry()
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListCountryNotPaging();
        //}

        //public static List<MailBroadcastDataAcess.Entity.Customer> GetListCustomerByCusCamIDPaging(out int TotalNumber, int currenPage, int pageSize, string CustomerName, string Address,
        //   string Phone, string Mobile, byte? Status, int? CountryID, int? CustomerCampaignID, DateTime? CreateDate)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListCustomerPaging(out TotalNumber, currenPage, pageSize, CustomerName, Address,
        //   Phone, Mobile, Status, CountryID, CustomerCampaignID,CreateDate);
        //}

        //public static List<MailBroadcastDataAcess.Entity.TypeCustomer> GetListTypeCustomer()
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListTypeCustomerNotPaging();
        //}

        //public static int CreateCustomer(MailBroadcastDataAcess.Entity.Customer customer)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateCustomer(customer);
        //}

        //public static int CreateEmailCustomer(MailBroadcastDataAcess.Entity.EmailCustomer email)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateEmailCustomer(email);
        //}

        //public static int CreateTypeCustomerManage(MailBroadcastDataAcess.Entity.TypeCustomerManage tyeMana)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateTypeCustomerManage(tyeMana);
        //}

        //public static MailBroadcastDataAcess.Entity.EmailCustomer GetEmailCustomerByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetEmailCustomerByID(id);
        //}

        //public static void UpdateEmailCustomer(MailBroadcastDataAcess.Entity.EmailCustomer email)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    camSvc.UpdateEmailCustomer(email);
        //}

        //public static void DelteEmailCustomerByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    camSvc.DeleteEmailCustomer(id);
        //}

        //public static List<MailBroadcastDataAcess.Entity.Customer> GetListCustomerByClientID(out int TotalNumber, int currenPage, int pageSize, int? clientID)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListCustomerByClientID(out TotalNumber,currenPage,pageSize,clientID);
        //}

        //public static MailBroadcastDataAcess.Entity.Customer GetCustomerByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetCustomerByID(id);
        //}

        //public static int UpdateCustomer(MailBroadcastDataAcess.Entity.Customer cus)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.UpdateCustomer(cus);
        //}

        //public static void SaveDatatoTempTable(string sheetName, string filePath, string IsHDR, string tableName)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    camSvc.SaveDatatoTempTable(sheetName,filePath,IsHDR,tableName);
        //}

        //public static List<MailBroadcastDataAcess.Entity.CopyTempData> GetListCopyDataTemp()
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListCopyDataFromTempTable();
        //}

        //public static MailBroadcastDataAcess.Entity.TempData GetTempDataByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetTempDataByID(id);
        //}

        //public static int DeleteTempData(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.DeleteTempData(id);
        //}

        //public static List<MailBroadcastDataAcess.Entity.Campaign> GetListCampaignPaging(out int TotalNumber, int currenPage, int pageSize, string name, byte? status, int? configID, string description, int? userCreate, bool? deploy, int? scheduleID, string content, int? clientID, DateTime? createDate)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListCampaignPaging(out TotalNumber, currenPage, pageSize, name,status,configID,description,userCreate,deploy,scheduleID,content,clientID,createDate);
        //}

        //public static MailBroadcastDataAcess.Entity.Client GetclientByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetClientByID(id);
        //}

        //public static MailBroadcastDataAcess.Entity.Client GetClientByCampaignID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetClientByCampaignID(id);
        //}

        //public static void ChangeStatusCampaign(int? id, int? newStatus)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    camSvc.UpdateStatusCampaign(id, newStatus);
        //}

        //public static List<MailBroadcastDataAcess.Entity.ClientStaffCampaign> GetListClientStaffCampaign(int? id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    if (id != null)
        //        return camSvc.GetListStaffIDByCampaignID((int)id);
        //    else
        //        return new List<MailBroadcastDataAcess.Entity.ClientStaffCampaign>();
        //}

        //public static List<MailBroadcastDataAcess.Entity.AssignUser> GetListAssignUser(int? id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    if (id != null)
        //        return camSvc.GetListAssignUserByCampaignID((int)id);
        //    else
        //        return new List<MailBroadcastDataAcess.Entity.AssignUser>();
        //}

        //public static List<MailBroadcastDataAcess.Entity.AttachFile> GetListAttachFileByCampaignID(int? id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    if (id != null)
        //        return camSvc.GetListAttachFileByCampaignID((int)id);
        //    else
        //        return new List<MailBroadcastDataAcess.Entity.AttachFile>();
        //}

        //public static List<MailBroadcastDataAcess.Entity.CustomerCampaign> GetListCustomerCampaignByCampaignID(int? id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    if (id != null)
        //        return camSvc.GetListCustomerCampaignByCampaignID((int)id);
        //    else
        //        return new List<MailBroadcastDataAcess.Entity.CustomerCampaign>();
        //}

        //public static MailBroadcastDataAcess.Entity.AttachFile GetAttachFileByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetAttachFileByID(id);
        //}

        //public static List<MailBroadcastDataAcess.Entity.Customer> GetListCustomerInCampaign(out int TotalNumber, int currenPage, int pageSize,int customerCampaignID)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListCustomerByCustomerCampaignID(out TotalNumber, currenPage, pageSize, customerCampaignID);
        //}

        //public static int UpdateMailSetting(MailBroadcastDataAcess.Entity.MailSetting mailSetting)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.UpdateMailSetting(mailSetting);
        //}

        //public static void DeleteAttachFile(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    camSvc.DeleteAttachFile(id);
        //}

        //public static List<MailBroadcastDataAcess.Entity.Schedule> GetListScheduleToDrop()
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetListScheduleNotPaging();
        //}

        //public static MailBroadcastDataAcess.Entity.Schedule GetScheduleByID(int id)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.GetScheduleByID(id);
        //}

        //public static int UpdateSchedule(MailBroadcastDataAcess.Entity.Schedule schedule)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.UpdateSchedule(schedule);
        //}

        //public static int CreateScheduleDetail(MailBroadcastDataAcess.Entity.Schedule schedule)
        //{
        //    MailBroadcastBussiness.CampaignService camSvc = new CampaignService();
        //    return camSvc.CreateSchedule(schedule);
        //}
    }
}